$(function() {

	var headnav=$("#headnav");
	str='<nav class="navbar navbar-inverse" role="navigation" style="margin-bottom: 0px;"><div class="container-fluid">';
	str+='<div class="navbar-header"><img src="image/front-main-logo.png" alt="TAO" /></div>';
	str+='<div class="nav navbar-nav"><ul class="nav navbar-nav"><li class="active"><a href="index.html">值班人员</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="productData">生产数据</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="entry_product">数据录入</a></li></ul></div>';	
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="pro_history">历史数据查询</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="agent_stat">替换班统计</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="sms">SMS客户端</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="index2">PREVIOUS</a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav"><li class="active"><a href="modify">系统管理</a></li></ul></div>';
	
	str+='<div><ul class="nav navbar-nav navbar-right"><li><a href="#" id="login_out"></a></li></ul></div>';
	str+='<div><ul class="nav navbar-nav navbar-right"><li><a href="#" id="login_all">登陆</a></li></ul></div>';
	
	str+='</div></nav>';	
	headnav.html(str);	
	
	var loginholder=$("#loginholder");
	str='<div id="loginModal" class="modal"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" id="login_close">x</button><h1 class="text-center text-primary">登录</h1></div><div class="modal-body"><form action="" class="form col-md-12 center-block"><div class="form-group"><input type="text" class="form-control input-lg" id="user_name"placeholder="用户名"></div><div class="form-group"><input type="password" class="form-control input-lg"id="user_pass" placeholder="登录密码"></div><div class="form-group"><button type="button" class="btn btn-primary btn-lg btn-block"id="user_login">立刻登录</button><span id="tips"></span></div></form></div><div class="modal-footer"></div></div></div></div>';
	loginholder.html(str);
});
